﻿using DownFile;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.ServiceModel;
using System.Text;
using System.Threading;

namespace DownFileApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Log log = new Log();
            using (ServiceHost host = new ServiceHost(typeof(Service1)))
            {
                host.Open();

                Console.WriteLine("WCF Init Success@" + DateTime.Now);
                Log.Debug(string.Format("WCF Init Success"));
                //Console.ReadLine();
                string cmd = "";
                while (cmd.ToLower() != "exit")
                {
                    cmd = Console.ReadLine();
                }
            }
        }
    }
}
